<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
    <style>
    .slider-h{
    margin-left:80px;
    }
    </style>
<div style="padding: 13px;">
	<form id="newsMoveForm" method="post">
		<input name="ids" type="hidden"  value="${ids}"/>
		栏目：
<select id="cc" name="categoryId" style="width:200px;">
<option value="1">公告</option>
</select>

	</form>
</div>
<script>
$(function(){
	$('#cc').combotree({
		url : '${ctx}/cate/allTree?flag=true',
		parentField : 'pid',
		lines : true,
		panelHeight : 'auto'
	});
	
});
$('#newsMoveForm').form({
	url : '${ctx}/news/move',
	onSubmit : function() {
		progressLoad();
		var isValid = $(this).form('validate');
		if (!isValid) {
			progressClose();
		}
		return isValid;
	},
	success : function(result) {
		progressClose();
		result = $.parseJSON(result);
		if (result.success) {
			parent.$.modalDialog.openner_dataGrid.datagrid('reload');//之所以能在这里调用到parent.$.modalDialog.openner_dataGrid这个对象，是因为user.jsp页面预定义好了
			parent.$.modalDialog.handler.dialog('close');
		} else {
			parent.$.messager.alert('提示', result.msg, 'warning');
		}
	}
});

</script>